package org.jeecg.modules.qyxx.service.impl;

import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import org.jeecg.modules.qyxx.entity.BgSwzbfxCkb;
import org.jeecg.modules.qyxx.mapper.BgSwzbfxCkbMapper;
import org.jeecg.modules.qyxx.service.IBgSwzbfxCkbService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 *
 */
@Service
public class BgSwzbfxCkbServiceImpl extends MppServiceImpl<BgSwzbfxCkbMapper, BgSwzbfxCkb>
        implements IBgSwzbfxCkbService {


    @Override
    public ConcurrentHashMap<String, Object> getBgSwzbfxCkb() {
        ConcurrentHashMap<String, Object> map = new ConcurrentHashMap<>();
        List<BgSwzbfxCkb> list = list();
        for (BgSwzbfxCkb bgSwzbfxCkb : list) {
            map.put(bgSwzbfxCkb.getZbid(), bgSwzbfxCkb);
        }
        return map;
    }
}
